﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="ListaPOAs.aspx.vb" Inherits="Devida_ListaPOAs" Theme="Yahoo-Ocean" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style2
        {
            width:100%;
        }
        .Frm_Fondo_fila_linea {
	BACKGROUND-COLOR: #1867B2;
            width: 0;
        }
        .style14
        {
            BACKGROUND-COLOR: #199A44;
            width: 100px;
        }
        .style17
        {
            BACKGROUND-COLOR: #199A44;
            width: 78px;
        }
        .style32
    {
        BACKGROUND-COLOR: #199A44;
        width: 196px;
    }
    .style33
    {
        BACKGROUND-COLOR: #199A44;
        width: 139px;
    }
    .style38
    {
        width: 88px;
    }
    .style42
    {
        width: 64px;
    }
     .Cabecera
        {
            height: 18px;
            font-weight: bold;
            font-size: 10px;
            color: White; 
            text-align: center;
            text-transform: uppercase;
            background-color: #66CC99;
        }
        .auto-style3 {
            width: 40px;
        }
        .auto-style4 {
            height: 47px;
        }
        .auto-style5 {
            width: 92px;
        }
        .auto-style6 {
            width: 80px;
        }
    </style>
    <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />

     <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
     <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function startWord(strFile) {
            var myApp = new ActiveXObject("Word.Application");
            if (myApp != null) {
                myApp.Visible = true;
                myApp.Documents.Open(strFile);
            }
        }
        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
    
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label ID="lb_name" runat="server" Font-Names="Arial" Font-Size="17px" ForeColor="white"
        Text="Lista de Proyectos / Actividades" Font-Bold="True"></asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">   
      <table>                            
          <tr>
              <td>
              <table  cellpadding="0" cellspacing="0" class="style2" >
              <tr>
              <td>
              <div style="border: solid 1px #99aabd; width: 900px; display:none; overflow: auto;" align="center">
                 <table cellpadding="0" cellspacing="0" class="style2">
                      <tr>
                        <td align="center" class="style17"; style="border:0.5px solid #FFFFFF">
                            <asp:Label ID="Label11" runat="server" CssClass="frm_formato" ForeColor="White" 
                                Text="Codigo"></asp:Label>
                        </td>
                        <td align="center" class="style33"; style="border:0.5px solid #FFFFFF">
                            <asp:Label ID="Label12" runat="server" CssClass="frm_formato" ForeColor="White" 
                                Text="Proyectos / Actividades"></asp:Label>
                        </td>
                        <td align="center" class="style32"; style="border:0.5px solid #FFFFFF">
                            <asp:Label ID="Label17" runat="server" CssClass="frm_formato" ForeColor="White" 
                                Text="Periodo"></asp:Label>
                        </td>
                        <td align="center" class="style14"; style="border:0.5px solid #FFFFFF">
                            <asp:Label ID="Label20" runat="server" CssClass="frm_formato" ForeColor="White" 
                                Text="PPER"></asp:Label>
                        </td>
                     </tr>
                 </table>
              </div>
              </td>
               </tr>                                                           
              </table>
              </td>
          </tr>
          <tr>
           <td class="auto-style4">
           <div style="border: solid 1px #99aabd; width: 1000px;  overflow: auto;" >
               <table cellpadding="0" cellspacing="0" class="style2">
<tr>
    <td align="left" class="auto-style5" >
        <asp:Label ID="lblNombre" runat="server" CssClass="label" Text="  Nombre: "></asp:Label>
<%--        <cc1:FilteredTextBoxExtender ID="filtro1" runat="server" FilterType="UppercaseLetters, LowercaseLetters, Numbers, Custom" InvalidChars=" " TargetControlID="txt_numero">
        </cc1:FilteredTextBoxExtender>--%>
    </td>
    <td class="auto-style3">
        <asp:TextBox ID="txt_numero" runat="server" CssClass="frm_formato_caja" Width="450px"
            AutoPostBack="True"></asp:TextBox>
    </td>
    <td align="right" class="auto-style6">
                           <asp:Label ID="lblPoa" runat="server" CssClass="label" Text="  POA - "></asp:Label>
                       </td>
    <td style="width: 150px" align="left">
                           <asp:TextBox ID="txtPOA" runat="server" CssClass="frm_formato_caja" Width="85px"
                               MaxLength="4">
                           </asp:TextBox>
                           <cc1:FilteredTextBoxExtender ID="ftbPOA" TargetControlID="txtPOA" runat="server"
                               FilterType="Numbers">
                           </cc1:FilteredTextBoxExtender>
                       </td>
    <td style="width: 10px">
        <asp:ImageButton ID="buscar" runat="server" ImageUrl="~/Imagenes/btn_acclupa.jpg" ToolTip="Buscar" />
    </td>
                </tr>
<tr>
    <td align="left" class="auto-style5">
        <asp:Label ID="Label1" runat="server" CssClass="label" Text="  Tipo: "></asp:Label>
    </td>
    <td class="auto-style3">
        <asp:DropDownList ID="ddlTipo" runat="server" CssClass="ddl" Width="100px" AutoPostBack="True">
        </asp:DropDownList>
    </td>
    <td align="left" class="auto-style6">
        &nbsp;</td>
    <td style="width: 150px" align="left">
        &nbsp;</td>
    <td style="width: 10px">
        &nbsp;</td>
                </tr>
               </table>
             </div>
           </td>
         </tr>
          <tr>
              <td>                                                                  
              </td>
          </tr>
          <tr>
            <td>
                    <table cellpadding="0" cellspacing="0" style="width: 1000px; height: 300px;">
                    <tr>
                        <td>
                              <div  style="border: solid 1px #99aabd; width: 1000px; height: 350px; overflow: auto;" align="center">
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                        <ContentTemplate>
                                            <div id="div_grilla" align="center" >                            
                                                <asp:GridView ID="gv_impresion" runat="server" AutoGenerateColumns="False" ShowHeader="true"
                                                    CellPadding="0" CellSpacing="0" CssClass="grid" Font-Size="8pt" GridLines="Vertical"
                                                    Width="1550px">
                                                    <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" VerticalAlign="Top" />
                                                    <Columns>
<%--                                                        <asp:BoundField HeaderText="N°" DataField="NUMERO" ItemStyle-HorizontalAlign="center"
                                                            ItemStyle-Width="10px" />--%>
                                                        <asp:TemplateField HeaderText="N°" ItemStyle-Width="20px">
                                                            <ItemTemplate>
                                                                <%# Container.DataItemIndex + 1 %>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:BoundField HeaderText="POA" DataField="POA" ItemStyle-HorizontalAlign="center" ItemStyle-Width="50px"/>
                                                        <asp:BoundField HeaderText="Año firma" DataField="ANHIO_FIRMA_POA" ItemStyle-HorizontalAlign="Center"
                                                            ItemStyle-Width="10px" />

                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                PPER</HeaderTemplate>
                                                            <ItemStyle Width="40px" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblPPER" runat="server" Text='<%# Eval("ABREVIATURA") %>'></asp:Label>
                                                                <asp:HiddenField ID="POA" runat="server" Value='<%# Eval("POA") %>' />
                                                                <asp:HiddenField ID="NomEjecutor" runat="server" Value='<%# Eval("EJE_DES")%>' />
                                                                <asp:HiddenField ID="NomProyAct" runat="server" Value='<%# Eval("NOMBRE") %>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField HeaderText="Ejecutor" DataField="EJE_DES" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="200px" />
                                                        <asp:BoundField HeaderText="Nombre" DataField="NOMBRE" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="410px" />
                                                        <asp:BoundField HeaderText="Tipo Proyecto Actividad" DataField="DESCRIPCION" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="60px" />
<%--                                                        <asp:BoundField HeaderText="Fecha Viabilidad" DataField="Fecha_Viabilidad" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="82px" HtmlEncode="false" DataFormatString="{0:dd/MM/yyyy}" />--%>
                                                        <asp:BoundField HeaderText="Estado Ing/Prog/Reprog" DataField="ESTADO_REPROG" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="80px"
                                                            HtmlEncode="false" />
                                                        <asp:BoundField HeaderText="Monto Total Presupuestado" DataField="Monto_Total_Invertido"
                                                            ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" HtmlEncode="false"
                                                            DataFormatString="{0:N0}" />
<%--                                                        <asp:BoundField HeaderText="Monto Invertido Año" DataField="Monto_Inv_Anhio" ItemStyle-HorizontalAlign="Right"
                                                            ItemStyle-Width="100px" HtmlEncode="false" DataFormatString="{0:N0}" />--%>
                                                        <asp:BoundField HeaderText="REGION" DataField="UBIGEO" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="160px" />
                                                        <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="120px" />
                                                        <asp:BoundField HeaderText="Especialista" DataField="ESPECIALISTA" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="120px" />
                                                        <asp:BoundField HeaderText="SNIP" DataField="SNIP" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="50px" />
                                                        <asp:BoundField HeaderText="Fecha registro" DataField="FECHA_REGISTRO" ItemStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="60px" />

                                                        <asp:CommandField ShowSelectButton="false" Visible="False" />
                                                    </Columns>
                                                    <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
                                                    <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />
                                                    <PagerStyle BackColor="#336699" Font-Bold="True" Font-Names="Verdana" Font-Size="10px"
                                                        ForeColor="White" HorizontalAlign="left" Wrap="False" />
                                                </asp:GridView>
                                            </div>
                                        </ContentTemplate>
                                        <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="gv_impresion" EventName="SelectedIndexChanged" />
                                        </Triggers>
                                        </asp:UpdatePanel>
                                </div>
                                <div id="print_area2" style="width: 100%; display: none;" >
                                    <asp:Label ID="Label3" runat="server" Font-Names="Arial" align="Right" Font-Size="17px"
                                        ForeColor="black" Text="Lista de Proyectos Asignados " Font-Bold="True"></asp:Label>
                                                <asp:GridView ID="gv_doc" runat="server" AutoGenerateColumns="False" BorderColor="Black" 
                                                CellPadding="4" Font-Size="8pt" GridLines="both" Width="900px" HeaderStyle-BackColor="#66CC99"> 
                                                <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" VerticalAlign="Top" />
                                                <Columns>      
                                                <asp:BoundField HeaderText="PPER" DataField="ABREVIATURA" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px" />                          
                                                <asp:BoundField HeaderText="Ejecutor" DataField="EJE_DES" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="200px" />
                                                <asp:BoundField HeaderText="Nombre" DataField="NOMBRE" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="410px" />
                                                <asp:BoundField HeaderText="Tipo Proyecto Actividad" DataField="DESCRIPCION" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />            
                                                <asp:BoundField HeaderText="Fecha Viabilidad" DataField="Fecha_Viabilidad" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="82px" HtmlEncode="false" DataFormatString="{0:dd/MM/yyyy}"/>
                                                <asp:BoundField HeaderText="Monto Total Invertido" DataField="Monto_Total_Invertido" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="100px" HtmlEncode="false" DataFormatString="{0:N0}" />           
                                                <asp:BoundField HeaderText="Monto Invertido Año" DataField="Monto_Inv_Anhio" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="100px" HtmlEncode="false" DataFormatString="{0:N0}" />            
                                                <asp:BoundField HeaderText="Ambito de Intervencion" DataField="ubigeo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="160px"/>
                                                <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="120px"/>
                                                <asp:BoundField HeaderText="Especialista" DataField="ESPECIALISTA" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="120px"/>
                                                <asp:BoundField HeaderText="SNIP" DataField="SNIP" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px"/>                
                                                <asp:CommandField ShowSelectButton="false" Visible="False" />
                                                </Columns>                                                                                     
                                            </asp:GridView>
                               </div>
                        </td>
                    </tr>
                </table>
                    </td>
         </tr>    
          <tr><td>
        <table width="900px" cellpadding="0" cellspacing="0">
        <tr>

                <td width="160px"><asp:ImageButton ID="ibProgFis" runat="server" ImageUrl="~/Imagenes/btnProgFis.png" ToolTip="Ver Programación Física"/> </td>           
                <td width="160px"><asp:ImageButton ID="ibProgFin" runat="server" ImageUrl="~/Imagenes/btnProgFin.png" ToolTip="Ver Programación Financiera"/> </td> 


                <td width="130px"><asp:ImageButton ID="ibAFisico" runat="server" ImageUrl="~/Imagenes/btnAFisico.png" ToolTip="Avance Fisico."/></td>                
                <td width="130px"><asp:ImageButton ID="ibAFinanciero" runat="server" ImageUrl="~/Imagenes/btnAFinanciero.png" ToolTip="Avance Financiero." /></td>

                <td width="100px"><asp:ImageButton ID="exportar" runat="server" ImageUrl="~/Imagenes/btnExportar.png" ToolTip="Exportar a Excel"/></td>   
                <td width="100px" align="right" ><asp:ImageButton ID="ibn_salir" runat="server" ImageUrl="~/Imagenes/btnSalir.png" ToolTip="Salir" /></td> 
        </tr>        
        <tr>

                <td colspan="6" style="text-align:center; color:blue; font-size:9pt; ">En esta lista podrá consultar la programación física y financiera de los POAs (se muestra el último vigente)</td>           
        </tr>        
        </table>        
        </td></tr>
    </table>
  <uc1:Alerta id="alerta" runat="server"></uc1:Alerta>
</asp:Content>

